package www.lagou.entity;

import java.io.Serializable;
import java.math.BigDecimal;

public class Phone implements Serializable {
    //id
    private int id;
    //手机名称
    private String pName;
    //手机单价
    private double price;
    //生产日期
    private String proDate;
    //颜色
    private String color;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getProDate() {
        return proDate;
    }

    public void setProDate(String proDate) {
        this.proDate = proDate;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "手机{" +
                "手机id=" + id +
                ", 手机名='" + pName + '\'' +
                ", 价格=" + price +
                ", 生成日期='" + proDate + '\'' +
                ", 外壳颜色='" + color + '\'' +
                '}';
    }
}
